using System.Collections.Generic;
using CQRS.Events;
using CQRS.Events.DomainClass;

namespace CQRS.Sample.Domain.BOs
{
    public class FlightCompany : AggregateRoot<Event>
    {
        public FlightCompany(string name, string address, IList<Plane> planes, IList<Accident> registeredAccidents)
        {
            Name = name;
            Address = address;
            Planes = planes;
            RegisteredAccidents = registeredAccidents;
        }

        public string Name { get; private set; }

        public string Address { get; private set; }
        public IList<Plane> Planes { get; private set; }

        public IList<Accident> RegisteredAccidents { get; private set; }
    }
}